"""
新建一个文件，定义一个计算类,有两个属性,数字1,数字2,具有 加 减 乘 除 方法
"""

class Calculation:
    def __init__(self, num1, num2):
        self.num1 = num1
        self.num2 = num2

    def plus(self):
        print(f'{self.num1} + {self.num2} = {self.num1 + self.num2}')

    def subtraction(self):
        print(f'{self.num1} - {self.num2} = {self.num1 - self.num2}')

    def multiplication(self):
        print(f'{self.num1} * {self.num2} = {self.num1 * self.num2}')

    def division(self):
        print(f'{self.num1} / {self.num2} = {self.num1 / self.num2}')



c1 = Calculation(6,3)
c1.plus()
c1.subtraction()
c1.multiplication()
c1.division()

